<?php
/*\
 *	file: oh.packs.php
 *	------------------
 *
 *
\*/

function oh_module_pack() {
	global $oh;
	
	if (count($oh['packs'])==0) {
		$oh['packs'] = array();
		$oh['packs'][] = $oh['path']."/modules";
		$ds = scandir($oh['path']."/modules");		
		foreach($ds as $d) {
			if ($d{0} == "_") {
				$oh['packs'][] = $oh['path']."/modules/".$d;
			}
		}
	}
	
	return $oh['packs'];	
}

function oh_module_pack_add($pack) {
	global $oh;

	$oh['packs'][] = $pack;										
}


